/**
 * <p>
 *
 * @Author：Roy
 * @Description：项目
 * @Date：Create by 2023-11-23 09:55:22
 */
import request from '@/utils/request'

const sceneProject = {
  // 分页查询项目
  queryList(data) {
    return request({
      url: '/energy-carbon/ecp-admin/sceneProject/queryPage',
      method: 'post',
      data
    })
  },
  // 查询列表，不分页
  queryProjectList(data) {
    return request({
      url: '/energy-carbon/ecp-admin/sceneProject/queryList',
      method: 'post',
      data
    })
  },
  // 新增项目
  add(data) {
    return request({
      url: '/energy-carbon/ecp-admin/sceneProject/add',
      method: 'post',
      data
    })
  },
  // 编辑项目
  update(data) {
    return request({
      url: '/energy-carbon/ecp-admin/sceneProject/update',
      method: 'post',
      data
    })
  },
  // 删除项目
  deleteById(data) {
    return request({
      url: '/energy-carbon/ecp-admin/sceneProject/deleteById',
      method: 'post',
      data
    })
  },
  // 启用禁用
  enableOrDisable(data) {
    return request({
      url: '/energy-carbon/ecp-admin/sceneProject/enableOrDisable',
      method: 'post',
      data
    })
  },
  // 批量删除项目
  batchDelete(data) {
    return request({
      url: '/energy-carbon/ecp-admin/sceneProject/batchDelete',
      method: 'post',
      data
    })
  },
  // 批量删除项目
  detail(id) {
  return request({
    url: '/energy-carbon/ecp-admin/sceneProject/detail',
    method: 'post',
    data: id
  })
}
}

export default sceneProject
